// 导入相关模块
import Vue from 'vue'
import Vuex from 'vuex'
import cart from './cart.js'
import user from './user.js'

// 将Vuex安装为Vue
Vue.use(Vuex)

// 创建实例对象
 const store = new Vuex.Store ({
	 modules: {
		 m_cart: cart,
		 m_user: user,
	 }
 })
 
 // 对外暴露该实例对象
 export default store